﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AllInOne.Entity
{
    public class BackInfo
    {
        public int code { get; set; }
        public object data { get; set; }
        public string message { get; set; }
    }

    /// <summary>
    /// 指定Data类型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BackInfo<T>
    {
        public int code { get; set; }

        public string message { get; set; }

        public T data { get; set; }

        //分页信息
        /// <summary>
        /// 页号--pageindex是从1开始的不是从零开始的
        /// </summary>
        public int pageIndex { get; set; }
        /// <summary>
        /// 页大小
        /// </summary>
        public int pageSize { get; set; }
        /// <summary>
        /// 总条数
        /// </summary>
        public int totalCount { get; set; }
    }
}
